/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.gov.mtc.dgac.licencias.bean;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author German
 */
@Embeddable
public class ClientelichabevalTOPK implements Serializable {
    @Column(name = "COD_EVAL_HAB", nullable = false)
    private long codEvalHab;
    @Column(name = "COD_HABILITACION", nullable = false)
    private long codHabilitacion;
    @Column(name = "CLNTLCNCHBCDHBLTCN", nullable = false)
    private long clntlcnchbcdhbltcn;
    @Column(name = "COD_LICENCIA", nullable = false)
    private long codLicencia;
    @Column(name = "COD_CLIENTE", nullable = false)
    private long codCliente;

    public ClientelichabevalTOPK() {
    }

    public ClientelichabevalTOPK(long codEvalHab, long codHabilitacion, long clntlcnchbcdhbltcn, long codLicencia, long codCliente) {
        this.codEvalHab = codEvalHab;
        this.codHabilitacion = codHabilitacion;
        this.clntlcnchbcdhbltcn = clntlcnchbcdhbltcn;
        this.codLicencia = codLicencia;
        this.codCliente = codCliente;
    }

    public long getCodEvalHab() {
        return codEvalHab;
    }

    public void setCodEvalHab(long codEvalHab) {
        this.codEvalHab = codEvalHab;
    }

    public long getCodHabilitacion() {
        return codHabilitacion;
    }

    public void setCodHabilitacion(long codHabilitacion) {
        this.codHabilitacion = codHabilitacion;
    }

    public long getClntlcnchbcdhbltcn() {
        return clntlcnchbcdhbltcn;
    }

    public void setClntlcnchbcdhbltcn(long clntlcnchbcdhbltcn) {
        this.clntlcnchbcdhbltcn = clntlcnchbcdhbltcn;
    }

    public long getCodLicencia() {
        return codLicencia;
    }

    public void setCodLicencia(long codLicencia) {
        this.codLicencia = codLicencia;
    }

    public long getCodCliente() {
        return codCliente;
    }

    public void setCodCliente(long codCliente) {
        this.codCliente = codCliente;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) codEvalHab;
        hash += (int) codHabilitacion;
        hash += (int) clntlcnchbcdhbltcn;
        hash += (int) codLicencia;
        hash += (int) codCliente;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ClientelichabevalTOPK)) {
            return false;
        }
        ClientelichabevalTOPK other = (ClientelichabevalTOPK) object;
        if (this.codEvalHab != other.codEvalHab) {
            return false;
        }
        if (this.codHabilitacion != other.codHabilitacion) {
            return false;
        }
        if (this.clntlcnchbcdhbltcn != other.clntlcnchbcdhbltcn) {
            return false;
        }
        if (this.codLicencia != other.codLicencia) {
            return false;
        }
        if (this.codCliente != other.codCliente) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dgac.licencias.to.ClientelichabevalTOPK[codEvalHab=" + codEvalHab + ", codHabilitacion=" + codHabilitacion + ", clntlcnchbcdhbltcn=" + clntlcnchbcdhbltcn + ", codLicencia=" + codLicencia + ", codCliente=" + codCliente + "]";
    }

}
